Add a test for property notification
authorMatthias Clasen <mclasen@redhat.com>
Mon, 9 Jun 2014 16:47:45 +0000 (12:47 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 9 Jun 2014 17:31:14 +0000 (13:31 -0400)
commitf870a50f1fc6e62836ee4b1138da4fb7db1b352c
tree234c494b3647a98e5e7b61822404bc4af6ba68c8
parent46803aae111f63589c65ac867c1b6b82b4c4934c
Add a test for property notification

This tests just a few basic things for now. Mainly, that we don't
emit redundant notifications for enum, flags, int and boolean
properties. It also checks that we do emit the expected notifications
when the value actually changes. This is checked for string, double
and float properties as well.

There is a large number of exceptions in the test, and a lot more
checks that could be done. One class of exceptions is all the places
where we have -set booleans to go along with another property. We
should have a dedicated test for these pairs. Another class of
exceptions is where naked objects created by g_object_new () just
don't have the full functionality - e.g. a tree selection without
a tree view does not work very well. We set up the instance object
better for these situations.
testsuite/gtk/Makefile.am
testsuite/gtk/notify.c [new file with mode: 0644]